<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的帖子</title>
<%@ include file="../common/link.jsp" %>
<%@ include file="../common/script.jsp" %>
<script type="text/javascript">
$(window).load(function(){
	$('#demo-side-bar').removeAttr('style');
});
</script>
<style type="text/css">
.demobar{display:none;}
#demo-side-bar{top:53px!important;left:90%!important;display:block!important;}
</style>
<%@ include file="../common/header.jsp" %>
</head>
<body>

<!-- START CONTENT -->
    <section class="container clearfix">
        <header class="container page_info clearfix">
			<h1 class="regular brown bottom_line">我的帖子</h1>
	     	<div class="clear"></div>
		</header>
		<!-- START CONTENT SIDE -->
		<div class="content clearfix">
				<c:if test="${!empty userPosts }">
				<c:forEach items="${userPosts}" var="post">
				<!-- START CONTENT SIDE -->
		<div class="content clearfix">
			
			<!-- START BLOG POST -->
			<article class="blog_post clearfix">
				<!-- START LEFT POST SIDE -->
				<aside class="left_side">
					<!-- START DATE -->
					
					<!-- END DATE -->
				</aside>
				<!-- END LEFT POST SIDE -->
				
				<!-- START RIGHT POST SIDE -->
				<section class="right_side">
					<div class="block_post">
						<!-- START TITLE -->
						<a class="post_title" href="blog_single.html">${post.postTitle}</a>
						<!-- END TITLE -->
						<div class="clear"></div>
						
						<div class="post-meta clearfix">
					
                    	<div class="date">${post.postCode}</div>
                    	<div class="author"><a href="#">${post.user.userName}</a></div>
						<div class="number_comments"><a href="#">${post.replyCnt } 评论</a></div>
						</div>
						<div class="clear"></div>

						
						<!-- START TEXT -->
						<p>
						${post.postMain}
						</p>
						<div class="clear"></div>
						<a href="${pageContext.request.contextPath}/post/postdetail?postId=${post.postId}" class="button white">更多</a>.
						
						<!-- END TEXT -->
					</div>
				</section>
				<!-- END RIGHT POST SIDE -->
			</article>
			<!-- END BLOG POST -->
			
			<div class="clear"></div>
		</div>
	</c:forEach>
	</c:if>
			
			<!-- START PAGINATION -->
			<div class="pages">
				<a href="#" class="prev">&nbsp;</a>
				<a href="#">1</a>
				<a href="#" class="selected">2</a>
				<a href="#">3</a>
				<a href="#">...</a>
				<a href="#">10</a>
				<a href="#" class="next">&nbsp;</a>
			</div>
			<!-- END PAGINATION -->
		</div>
		<!-- END CONTENT SIDE -->
		
		<div class="clear padding40"></div>
	</section>
    <!-- END CONTENT -->
<%@ include file="../common/footer.jsp" %>    
</body>
</html>